We can return the node path on those too, so do that.
https://bugzilla.gnome.org/show_bug.cgi?id=770026
* will return %NULL.
*
* This is most notably implemented for devices of type
- * %GDK_SOURCE_PEN and %GDK_SOURCE_ERASER.
+ * %GDK_SOURCE_PEN, %GDK_SOURCE_ERASER and %GDK_SOURCE_TABLET_PAD.
*
* Returns: the /dev/input/event* path of this device
**/
gdk_wayland_device_get_node_path (GdkDevice *device)
{
GdkWaylandTabletData *tablet;
+ GdkWaylandTabletPadData *pad;
GdkSeat *seat;
if (tablet)
return tablet->path;
+ pad = gdk_wayland_device_manager_find_pad (GDK_WAYLAND_SEAT (seat), device);
+ if (pad)
+ return pad->path;
+
return NULL;
}